<?php
namespace app\admin\logic;

//会员逻辑层
class VipsLogic{
    //列表页where条件拼接
     public static function   vipsWhere($param){
       $where=[];
         if (isset($param['keywords']) && !empty($param['keywords'])){
             $where[]=['user_name','like','%'.$param['keywords'].'%'];
         }
        return $where;
     }
     //列表页留置
     public static function   vipsData($param){
       $data=[
           'keywords'=>isset($param['keywords'])?$param['keywords']:'',
       ];
       return $data;
     }
}